package nccloud.web.gl.accountrep.action;

import java.util.List;
import java.util.Map;

import nc.itf.pub.service.IQuerySubjectService;
import nc.vo.pub.BusinessException;
import nccloud.framework.service.ServiceLocator;
import nccloud.pubitf.gl.account.IAccountReportWebService;

public class DetailBookQueryAction extends AbstAccountRepCommonAction {
	public Object doQuery(Map<String, Object> paraMap) throws BusinessException {
		IQuerySubjectService service = ServiceLocator.find(IQuerySubjectService.class);
		if(paraMap.get("subjectType") != null) {
			List<Map<String, Object>> lists = service.queryAccasoaStartAndEndCodeBypk("1001YY1000000003GLG8", paraMap.get("subjectType").toString());
			paraMap = service.handlerParam(paraMap, lists);
		}
		return ServiceLocator.find(IAccountReportWebService.class)
				.queryDetailbook(paraMap);
	}
}